#! /bin/sh
#chmod +x xxx.command

path="/Users/cvjar/Desktop/Web"
branch="master"

cd $path

echo "----- Git Branch -----"
git branch
echo "Branch is ||| $branch"
git add .
echo "----- Git Status -----"
git status
echo
echo '======================'
echo

echo "Please Input commit log ! "
read CommitStr

if [[ $CommitStr != "" && $branch != "" ]]; then
	git commit -m "${CommitStr}"
	git push origin $branch
fi

echo
echo "Over"